import { BinaryDecision } from "framework/FSM/DecisionTree/Decision";
import { DecisionTreeNode } from "framework/FSM/DecisionTree/DecisionTreeNode";
 
export class DecisionReactionActive <T extends IStateArg<Room >> extends BinaryDecision<T>
{


    public testValue(arg:T): boolean
    {
        const labentity = arg.entity.getEntity("LabEntity");
        const taskid =labentity.getNodeMemory().reactionTask;
        if(taskid && labentity.BaseLabs().length==2 )
        {
            return true
        }
        return false;
    }

    value: any;


    public setValue(val: any)
    {
        this.value = val;
    }
}

